package com.caigou.modules.data.adpter

import com.caigou.modules.data.R
import com.caigou.modules.data.bean.LawItemBean
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder

/**
 * @author #Suyghur.
 * Created on 2021/12/29
 */
class LawItemAdapter(dataset: MutableList<LawItemBean>) : BaseQuickAdapter<LawItemBean, BaseViewHolder>(R.layout.item_law_list, dataset) {

    override fun convert(holder: BaseViewHolder, item: LawItemBean) {
        holder.setText(R.id.item_law_tv_period, "第${item.period}期：")
        holder.setText(R.id.item_law_tv_title, item.title)
        holder.setText(R.id.item_law_iv_like_num, item.likeCount.toString())
    }
}